package com.Lgwd.repository;

import com.Lgwd.entity.InitializeProfessionEntiy;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface InitializeProfessionRepository extends JpaRepository<InitializeProfessionEntiy,Integer> {



    @Query(value="select * FROM `initializeprofession` where user_profession=?1" , nativeQuery = true)
    InitializeProfessionEntiy findByUser_profession(@Param("user_profession")String profession);

}
